CPP  = g++
CC   = gcc

RES  = 
OBJ  = obj/main.o obj/Agent.o $(RES)
LINKOBJ  = obj/main.o obj/Agent.o $(RES)
LIBS =  ../../../hardware/lib/linux32/libhardware.a  ../../../drawing/lib/linux32/libdrawing.a ../../../modeling/lib/linux32/libmodeling.a ../../../exceptions/lib/linux32/libexceptions.a  -lglut -lGL
INCS =  -I"../../source"  -I"../../../mathing/source"  -I"../../../drawing/source"  -I"../../../modeling/source"  -I"../../../exceptions/source"  -I"../../../hardware/source" 
CXXINCS =  -I"../../source"  -I"../../../mathing/source"  -I"../../../drawing/source"  -I"../../../modeling/source"  -I"../../../exceptions/source"  -I"../../../hardware/source" 
BIN  = ../../bin/linux32/application
CXXFLAGS = $(CXXINCS)   -w -fexceptions
CFLAGS = $(INCS)   -w -fexceptions
RM = rm -f

.PHONY: all all-before all-after clean clean-custom

all: all-before ../../bin/linux32/application all-after


clean: clean-custom
	${RM} $(OBJ) $(BIN)

$(BIN): $(OBJ)
	$(CPP) $(LINKOBJ) -o "../../bin/linux32/application" $(LIBS)

obj/main.o: ../../source/main.cpp
	$(CPP) -c ../../source/main.cpp -o obj/main.o $(CXXFLAGS)

obj/Agent.o: ../../source/Agent.cpp
	$(CPP) -c ../../source/Agent.cpp -o obj/Agent.o $(CXXFLAGS)
